export function formatTime(dateString) {
    const date = new Date(dateString)
    const today = new Date()
    const yesterday = new Date(today)
    yesterday.setDate(yesterday.getDate() - 1)

    if (date.toDateString() === today.toDateString()) {
        return '今天 '
    } else if (date.toDateString() === yesterday.toDateString()) {
        return '昨天 '
    } else {
        return `${date.getFullYear()}年${date.getMonth() + 1}月${date.getDate()}日`
    }
}